package com.ruoyi.common.core.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 资产基础信息对象 ams_asset_info
 * 
 * @author yfkj
 * @date 2021-10-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AmsAssetInfo extends com.ruoyi.common.core.web.domain.BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 资产基础信息主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long assetId;
    /** 资产标准型号 */
    @Excel(name = "资产标准型号")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产标准型号")
    private Long assetTemplateId;
    /** 资产系统编码 */
    @Excel(name = "资产系统编码")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产系统编码")
    private String assetCode;
    /** 资产自有编码 */
    @Excel(name = "资产自有编码")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产自有编码")
    private String sn;
    /** 图片 */
    @Excel(name = "图片")
    @TableField(exist = true)
    @ApiModelProperty(value =  "图片")
    private String assetImage;
    /** 金额 */
    @Excel(name = "金额")
    @TableField(exist = true)
    @ApiModelProperty(value =  "金额")
    private Long assetAmount;
    /** 资产品牌 */
    @Excel(name = "资产品牌")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产品牌")
    private Long brandId;
    /** 资产所属批次 */
    @Excel(name = "资产所属批次")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产所属批次")
    private Long projectId;
    /** 是否删除(0是，1否) */
    @Excel(name = "是否删除(0是，1否)")
    @TableField(exist = true)
    @ApiModelProperty(value =  "是否删除(0是，1否)")
    private Integer isDelete;
    public static final String ASSET_ID="asset_id";
    public static final String ASSET_TEMPLATE_ID="asset_template_id";
    public static final String ASSET_CODE="asset_code";
    public static final String SN="sn";
    public static final String ASSET_IMAGE="asset_image";
    public static final String ASSET_AMOUNT="asset_amount";
    public static final String BRAND_ID="brand_id";
    public static final String PROJECT_ID="project_id";
    public static final String IS_DELETE="is_delete";
    public static final String CREATE_BY="create_by";
    public static final String CREATE_TIME="create_time";
    public static final String UPDATE_BY="update_by";
    public static final String UPDATE_TIME="update_time";
    public static final String REMARK="remark";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assetId", getAssetId())
            .append("assetTemplateId", getAssetTemplateId())
            .append("assetCode", getAssetCode())
            .append("sn", getSn())
            .append("assetImage", getAssetImage())
            .append("assetAmount", getAssetAmount())
            .append("brandId", getBrandId())
            .append("projectId", getProjectId())
            .append("isDelete", getIsDelete())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
